package com.liuqi.openai.retrieve.bm25;

import java.util.List;

/**
 * BM25检索器的文档
 *
 * @author liuqi
 * @date 2025/8/7
 **/
public class BM25Document<T> {

    /**
     * 分词列表
     */
    private final List<String> document;

    /**
     * 数据
     */
    private final T data;

    public BM25Document(List<String> document, T data) {
        this.document = document;
        this.data = data;
    }

    public List<String> getDocument() {
        return document;
    }

    public T getData() {
        return data;
    }

    @Override
    public String toString() {
        return "BM25Document{" +
                "document=" + document +
                ", data=" + data +
                '}';
    }

}
